class BaseResponseModel<T> {
  //这个属性是服务端接口返回体中没有的，用于清晰判断请求是否成功
  late bool isSuccess;

  late dynamic data;
  late int code;
  late String message;

  BaseResponseModel();

  BaseResponseModel.fromJson(Map<String, dynamic> json) {
    data = json["data"];
    code = json["code"];
    message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["data"] = data;
    map["code"] = code;
    map["message"] = message;
    return map;
  }
}
